package com.applet.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @author “XuShao”
 * @date 2024/12/17 16:50
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Video {

    @Schema(description = "主键id")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;// 主键id

    @Schema(description = "发布人-志愿者id")
    private String issueId;// 发布人-志愿者id

    @Schema(description = "发布人-管理者id")
    private String adminId;// 发布人-管理者id

    @Schema(description = "视频标题")
    private String videoTitle;// 视频标题

    @Schema(description = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GHT+8")
    private LocalDateTime issueTime;// 发布时间

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GHT+8")
    private LocalDateTime updateTime;// 修改时间

    @Schema(description = "文件")
    private String file;// 文件

    @Schema(description = "0正常，1删除")
    @TableLogic(value = "0", delval = "1")
    private Short deleted; // 0正常，1删除

    @Schema(description = "视频描述")
    private String description; // 视频描述

    @Schema(description = "视频分类id")
    private String classifyId; // 视频分类id
}
